﻿export default url => {
    const crud = window.$crud(url)
    // 设备管理模块的设备信息页面的查看功能的echarts数据
    crud.getrunstate = (params) => window.$axios({
        url: `erpcase/materials/getrunstate`,
        method: 'get',
        params:params
    })

    // 改变状态
    crud.changeState = (id,data) =>window.$axios({
        url:`${url}/${id}`,
        method: 'put',
        data:data
    })   
    
    return {
        ...crud,
    }
}